﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PresentationLayer.View
{
    public partial class Report_Reorder : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            int m1 = Int32.Parse(DropDownList2.SelectedValue);

            DS_Reorder ds = new DS_Reorder();
            PresentationLayer.Reports.DS_ReorderTableAdapters.ReorderTableAdapter ta = new PresentationLayer.Reports.DS_ReorderTableAdapters.ReorderTableAdapter();

            ta.Fill(ds.Reorder, m1);
            Report_Reorder rep = new Report_Reorder();


            rep.SetDataSource(ds);
            CrystalReportViewer1.ReportSource = rep;





        }
    }
}